import React, { Component } from 'react'
import './home.scss'

import Header from '../../components/header'

class Home extends Component {
  render () {
    return (
      <div className="P-home">
        <Header  />
        <h1>Home page</h1>
        <p>你好：{this.props.myData}</p>
        <button onClick={this.gotoLogin}>跳转login页面</button>
      </div>
    )
  }
  gotoLogin = () => {
    this.props.history.push('/login')
  }
}


export default Home
